<?php

$i=0;
?>
<h2 class="showNextDiv pointer"><?php __('Temporary workers deactivation PRM07_ER')  ?> </h2>
<div class="">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('User') ?></th>
                <th><?php  __('Contract End') ?></th>
                <th><?php  __('Manager') ?></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($users as $key => $val):  ?>
            <?php (($i%2)>0)?$cl='impair':$cl='pair';  ?>
            <tr class="<?php echo $cl  ?>">
                <td><?php echo $val['User']['UsName']  ?></td>
                <td><?php echo $val['User']['contract_end']  ?></td>
                <td><?php echo $val['Manager']['UsName']  ?></td>

            </tr>
            <?php $i++;endforeach;  ?>
        </tbody>
    </table>
</div>